package com.example.mybatisplus_test.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.mybatisplus_test.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.Wrapper;
import java.util.List;

@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {


    @Select("select id,user_name,password,age from user_info ${ew.customSqlSegment} ")
    List<UserInfo> selectByIdTest(@Param(Constants.WRAPPER) QueryWrapper ew);
}
